package com.zyy.abstractfacotry;

/**
 * @Description: 类描述
 * @Author: zyy
 * @Date: 2023/07/19 23:03
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("======小米系列产品======");
        MIFactory miFactory = new MIFactory();

        IPhoneProduct miPhone = miFactory.iPhoneProduct();
        miPhone.call();
        miPhone.sms();

        IRouterProduct miRouter = miFactory.iRouterProduct();
        miRouter.setting();


        System.out.println("======华为系列产品======");
        HuaWeiFactory huaWeiFactory = new HuaWeiFactory();

        IPhoneProduct huaWeiPhone = huaWeiFactory.iPhoneProduct();
        huaWeiPhone.call();
        huaWeiPhone.sms();

        IRouterProduct huaWeiRouter = huaWeiFactory.iRouterProduct();
        huaWeiRouter.setting();
    }
}
